package com.zdzx.model.dic;

public enum DevopsConfigType {

	IS_DEPLOY("IS_DEPLOY","持续部署"), 
	DOC_RUL("DOC_RUL","api doc"); 

	private String key;
	private String value;
	
	
	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
	
	private DevopsConfigType(String key) {
		this.key = key;
	}
	private DevopsConfigType(String key, String value) {
		this.key = key;
		this.value = value;
	}

	public static boolean hasKey(String key) {
		DevopsConfigType[] values = DevopsConfigType.values();
		for (DevopsConfigType type : values) {
			if(type.name().equals(key)) {
				return true;
			}
		}
		return false;
	}
}
